
import 'package:get/get.dart';
import 'package:library_base/constant/constant.dart';
import 'package:library_base/entities/enum_entity.dart';
import 'package:library_base/global/multi_language.dart';
import 'package:library_base/utils/num_util.dart';
import 'package:library_base/utils/sp_util.dart';

extension BoolExt on bool{

    String? packLib(){
        return Constant.baseIsRun ? null : Constant.moduleLib;
    }

    String? packCommon(){
        return Constant.commonIsRun ? null : Constant.moduleCommon;
    }

    String? packSetUp(){
        return Constant.setUpIsRun ? null : Constant.moduleSetUp;
    }

    String unitStrZh(){
        return this ? MultiLanguage.jin.tr:MultiLanguage.kilogram.tr;
    }

    String unitStrZhWithYuan(){
        return this ? "元/"+MultiLanguage.jin.tr:"元/"+MultiLanguage.kilogram.tr;
    }

    String unitStrZhWithBracket(){
        return this ? "(${MultiLanguage.jin.tr})":"(${MultiLanguage.kilogram.tr})";
    }

    String unitStrL10n(){
        return this ? MultiLanguage.jin.tr :'kg';
    }

}

